package mhys.View.Teacher;
import javax.swing.*;
import java.awt.*;
import static java.awt.Toolkit.getDefaultToolkit;

public class App {
    static JFrame jFrame = new JFrame();
    static JPanel jPanel;
    Image icon = getDefaultToolkit().getImage("D:/download/warriors.png");
    public App(){
        jFrame.setTitle("学生管理系统");
        jFrame.setSize(960,680);
        jFrame.setDefaultCloseOperation(3);
        jFrame.setLocationRelativeTo(null);
        jFrame.setLayout(new BorderLayout());
        jFrame.setIconImage(icon);
        MenuJpanel menuJpanel = new MenuJpanel();
        NavJpanel navJpanel = new NavJpanel();
        jPanel = new MainJpanel();

        jFrame.add(menuJpanel,BorderLayout.NORTH);
        jFrame.add(navJpanel,BorderLayout.WEST);
        jFrame.add(jPanel,BorderLayout.CENTER);

        jFrame.setVisible(true);
    }
    public static void main(String[] args) {
        new App();
    }
}
